import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import {Provider} from 'react-redux'
import {createStore, applyMiddleware} from  'redux'
import totalReducer from './store/reducer'
import thunk from 'redux-thunk'

const store = createStore(totalReducer, applyMiddleware(thunk))

console.log(store.getState(), 'getState')

ReactDOM.render(
  <React.StrictMode>
    <Provider store={store}><App /></Provider>
  </React.StrictMode>,
  document.getElementById('root')
);

